<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta
      name="viewport"
      content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no"
    />
    <title>Document</title>
    <style>
      * {
        margin: 0;
        padding: 0;
      }
      .box {
        width: 100px;
        height: 100px;
        background-image: url("./images/logo.png");
        background-size: cover;
      }

      @media (-webkit-min-device-pixel-ratio: 2) {
        .box {
          background-image: url("./images/logo@2x.png");
        }
      }

      /* >=3 */
      @media (-webkit-min-device-pixel-ratio: 3) {
        .box {
          background-image: url("./images/logo@3x.png");
        }
      }
    </style>
  </head>
  <body>
    <div class="box"></div>
  </body>
</html>
